#!/bin/bash
MAX_N0=0

echo -n "Enter Number between (5 to 9) : "
read MAX_N0

if ![$MAX_N0 -ge 5 -a $MAX_N0 -le 9]; then
	echo "WTF...I ask to enter number between 5 and 9. Try again"
	exit 1
fi

clear

for ((i=1; i <= MAX_N0; i++)); do
	for ((s = MAX_N0; s >= i; s--)); do
		echo -n " "
	done
	for ((j=1;j<=i;j++)); do
		echo -n " ."
	done
	echo ""
done
#### Second stage ####
for ((i = MAX_N0; i>=1;i--)); do
	for ((s=i;s<=MAX_N0;s++));do
		echo -n  " "
	done
	for((j=1;j<=i;j++));do
		echo -n " ."
	done
	echo ""
done
echo -e "\n\n\t\t\t Whenever you need help, Tecmint.com is always there"
